const router = require("koa-router")();
const UserModel = require("../../models/user");
router.get("/api/user",async ctx=>{
    let {id} = ctx.query;
    var data = await UserModel.find({_id:id});
    ctx.body={
        code:200,
        res:data,
        msg:"请求成功"
    }
})
module.exports = router